package org.comanche.snaf.core.service;

import org.comanche.snaf.core.session.IoSession;

/**
 * it is to control the session when the connect request
 * come in
 * @author joe_zhou
 *
 */
public interface Processor<S extends IoSession> {
	/**
	 * add session to new session collections
	 * @param session
	 */
	public void add(S session);
	/**
	 * add session to remove session collections
	 * @param session
	 */
	public void remove(S session);
	/**
	 * add write to session
	 *
	 * @param session
	 */
	public void flush(S session);
}
